package com.sinothk.hm.retrofit.bean;

public class ResultData<T> {

    public static int TOKEN_OVERDUE = 100;
    public static int SUCCESS = 200;
    public static int ERROR = 500;

    private int code;
    private String msg;
    private String message;
    private T data;
    private T result;

    public ResultData() {
    }

    public ResultData(String msg) {
        this.code = ERROR;
        this.msg = msg;
    }

    public ResultData(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public ResultData(int code, String msg, T data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public T getResult() {
        return result;
    }

    public void setResult(T result) {
        this.result = result;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
